{% extends 'LimsMainBundle::Layout/formLayout.html.twig' %}

{% block stylesheets %}
    {{ parent() }}
    <link href="/template/css/lims/newCitizen.css" rel=stylesheet type=text/css />
{% endblock %}

{% block javascripts %}
    {{ parent() }}
    <script type=text/javascript src="/template/js/lims/newCitizen.js"></script>
    <script type=text/javascript src="/template/js/plugins/stepy/jquery.stepy.min.js"></script>
{% endblock %}

{% block content %}

    {% include 'LimsMainBundle::Breadcrumb/breadcrumb.html.twig' with {'breadCrumbName' : 'Зээлдэгч аж ахуйн нэгж'} %} 
    <form action="{{path('lims_debtor_create_legalEntity')}}" method="post" name="create_citizen">
    <div class=row> 

        <div class="col-md-12" id="citizen_form_container">             
                <div class="block block-white"> 
                    <div class=header> <h2>Хуулийн этгээдийн мэдээлэл</h2> 
                    </div> 
                    <div class="content controls"> 

                        <div class="form-row"> 
                            <div class="col-md-3"><label class="required">*</label> Нэр (Монгол) : </div> 
                            <div class="col-md-9"> 
                                <input type=text class="form-control" name="lentity_name_mn" id="lentity_name_mn" tabindex="1" required="required"/>
                            </div> 
                        </div>

                        <div class="form-row"> 
                            <div class="col-md-3">Нэр (Гадаад) : </div> 
                            <div class="col-md-9"> 
                                <input type=text class="form-control" name="lentity_name_en" id="lentity_name_en" tabindex="2"/>
                            </div> 
                        </div>
                        
                        <div class="form-row"> 
                            <div class="col-md-3"><label class="required">*</label> Регистрийн дугаар : </div> 
                            <div class="col-md-9"> 
                                <input type=text class="validate[required,minSize[10],maxSize[10]] form-control" name="lentity_register_number" id="lentity_register_number" tabindex="3" required="required" style="text-transform:uppercase"/>
                            </div> 
                        </div>
                        
                        <div class="form-row"> 
                            <div class="col-md-3">Татвар төлөгчийн дугаар : </div> 
                            <div class="col-md-9"> 
                                <input type=text class="validate[required,minSize[10],maxSize[10]] form-control" name="lentity_tax_number" id="lentity_tax_number" tabindex="4"/>
                            </div> 
                        </div>
                        
                        <div class="form-row"> 
                            <div class="col-md-3"><label class="required">*</label> Төрөл : </div> 
                            <div class="col-md-9"> 
                                <select class="select2 col-md-12 padding-none" tabindex="12" name="lentity_type_id" id="lentity_type_id" required="required"> 
                                    <option value="">Сонгох</option>
                                    {% for legalEntityType in legalEntityTypeList %}
                                        <option value="{{legalEntityType.id}}">{{legalEntityType.name}}</option>
                                    {% endfor %}
                                </select>
                            </div> 
                        </div>
                        
                        <div class="form-row"> 
                            <div class="col-md-3"><label class="required">*</label> Үйл ажиллагааны чиглэл : </div> 
                            <div class="col-md-9"> 
                                <div class=form-row> 
                                    <select class="select2" multiple="multiple" style="width:100%" tabindex="5" name="lentity_activity" id="lentity_activity" required="required"> 
                                        <optgroup label="Alaskan/Hawaiian Time Zone"> 
                                            <option value=AK selected=selected>Alaska</option> 
                                            <option value=HI>Hawaii</option> 
                                        </optgroup>                                         
                                    </select> 
                                    
                                </div>
                            </div> 
                        </div>
                        
                        <div class="form-row"> 
                            <div class="col-md-3"><label class="required">*</label> Утасны дугаар : </div> 
                            <div class="col-md-4"> 
                                <input type="text" class="validate[required,minSize[10],maxSize[10]] form-control" name="lentity_phone" id="lentity_phone" tabindex="6" required="required"/>
                            </div> 
                        </div>
                        
                        <div class="form-row"> 
                            <div class="col-md-3"><label class="required">*</label> И-мэйл:</div> 
                            <div class="col-md-4"> 
                                <input type="email" class="validate[required,equals[email]] form-control" tabindex="7" name="lentity_email" id="lentity_email" required="required"/>
                            </div> 
                        </div> 
                    </div>
                </div>

                <div class="block block-white"> 
                    <div class=header> <h2>Хаягын мэдээлэл</h2> 
                    </div> 
                    <div class="content controls"> 

                        <div class="form-row"> 
                            <div class="col-md-3"><label class="required">*</label> Аймаг / Нийслэл : </div> 
                            <div class="col-md-9"> 
                                <select class="select2" style="width:100%" tabindex="8" name="lentity_address_1" id="lentity_address_1" required="required"> 
                                    <option value="">Сонгох</option>
                                    {% for aimagDuureg in aimagDuuregList %}
                                        <option value="{{aimagDuureg.id}}">{{aimagDuureg.name}}</option>
                                    {% endfor %}
                                </select>
                            </div> 
                        </div>

                        <div class="form-row"> 
                            <div class="col-md-3">Сум/Дүүрэг : </div> 
                            <div class="col-md-9"> 
                                <select class="select2" style="width:100%" tabindex="9" name="lentity_address_2" id="lentity_address_2"> 
                                    <option value="">Сонгох</option>
                                    {% for sumKhoroo in sumKhorooList %}
                                        <option value="{{sumKhoroo.id}}">{{sumKhoroo.name}}</option>
                                    {% endfor %}
                                </select>
                            </div> 
                        </div>
                        
                        <div class="form-row"> 
                              <div class="col-md-3"><label class="required">*</label> Хаяг:</div> 
                              <div class="col-md-9"><textarea class="form-control" tabindex="10" name="lentity_address_full" id="lentity_address_full" required="required"></textarea>
                              </div> 
                        </div>
                    </div>
                </div>

                <div class="block block-white"> 
                    
                    <div class="head bg-dot30"> 
                        <h2>Удирдлагуудын мэдээлэл</h2>
                        <div class="pull-right"><button class="btn btn-default btn-clean" type="button">Нэмэх</button></div>
                        <div class="head-subtitle">
                            Удирдлага 1 :
                        </div> 
                    </div>
                    
                    <div class="content controls"> 
                        
                        <div class="form-row"> 
                            <div class="col-md-3">Ургын овог : </div> 
                            <div class="col-md-9"> 
                                <input type=text class="form-control" name="owner_family_name[]" id="owner_family_name" tabindex="11"/>
                            </div> 
                        </div>
                        
                        <div class="form-row"> 
                            <div class="col-md-3"><label class="required">*</label> Эцэг /эх/-ийн нэр : </div> 
                            <div class="col-md-9"> 
                                <input type=text class="form-control" name="owner_last_name[]" id="owner_last_name" tabindex="12" required="required"/>
                            </div>
                        </div>
                        
                        <div class="form-row"> 
                            <div class="col-md-3"><label class="required">*</label> Нэр : </div> 
                            <div class="col-md-9"> 
                                <input type=text class="form-control" name="owner_first_name[]" id="owner_first_name" tabindex="13" required="required"/>
                            </div>
                        </div>
                        
                        <div class="form-row"> 
                            <div class="col-md-3"><label class="required">*</label> Регистрийн дугаар : </div> 
                            <div class="col-md-9"> 
                                <input type=text class="form-control" name="owner_register_number[]" id="owner_register_number" tabindex="14" required="required"/>
                            </div>
                        </div>
                        
                        <div class="form-row"> 
                            <div class="col-md-3">Аймаг / Нийслэл : </div> 
                            <div class="col-md-9"> 
                                <select class="select2" style="width:100%" tabindex="15" name="owner_address_1[]" id="owner_address_1"> 
                                    <option value="">Сонгох</option>
                                    {% for aimagDuureg in aimagDuuregList %}
                                        <option value="{{aimagDuureg.id}}">{{aimagDuureg.name}}</option>
                                    {% endfor %}
                                </select>
                            </div> 
                        </div>

                        <div class="form-row"> 
                            <div class="col-md-3">Сум/Дүүрэг : </div> 
                            <div class="col-md-9"> 
                                <select class="select2" style="width:100%" tabindex="16" name="owner_address_2[]" id="owner_address_2"> 
                                    <option value="">Сонгох</option>
                                    {% for sumKhoroo in sumKhorooList %}
                                        <option value="{{sumKhoroo.id}}">{{sumKhoroo.name}}</option>
                                    {% endfor %}
                                </select>
                            </div> 
                        </div>
                        
                        <div class="form-row"> 
                              <div class="col-md-3">Хаяг:</div> 
                              <div class="col-md-9"><textarea class="form-control" tabindex="17" name="owner_address_full[]" id="owner_address_full"></textarea>
                              </div> 
                        </div>
                        
                        <div class="form-row"> 
                            <div class="col-md-3">Утас:</div> 
                            <div class="col-md-9"> 
                                <input type="text" class="col-md-4" class="form-control" tabindex="18" name="owner_phone[]" id="owner_phone"/> 
                            </div> 
                        </div> 
                        
                        <div class="form-row"> 
                            <div class="col-md-3">И-мэйл:</div> 
                            <div class="col-md-9"> 
                                <input type="email" class="col-md-4" class="validate[required,equals[email]] form-control" tabindex="19" name="owner_email[]" id="owner_email"/>
                            </div> 
                        </div> 
                    </div>
                </div>
                
        </div>
        {#<div class="col-md-2 closed" id="citizen_form_right_container">
            <div class="block">
                <div class="content controls"> 
                    <div class="form-row">                         
                        <div class="col-md-12"> 
                            <div>
                                <div class=header> <h2><a href="javascript: addCreditOnCitizen();">Зээлийн нэмэх <span class="icon-plus-sign"></span></a></h2></div>                                
                            </div> 
                        </div>
                    </div>
                </div>
            </div>
        </div>#}
        
    </div> 
    <div class="row">
        
        <div class=footer> 
            <div class="side"> 
                <div class="btn-group margin-left-10"> 
{#                    <button class="btn btn-default" type=button onClick="$('#validate').validationEngine('hide')">Hide prompts</button> #}
                    <button class="btn btn-success" name="save" value="1" type=submit>Хадгалах</button> 
                </div> 
            </div> 
        </div> 
    </div>
    <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}"/>
</form> 
</div> 

</div>
{% endblock %}